IPInterfaceStat


C Specification

#include <dolphin/ip.h>

typedef struct IPInterfaceStat  IPInterfaceStat;

struct IPInterfaceStat
{
    u32             inUcastPackets;     // Input unicast packets
    u32             inNonUcastPackets;  // Input broadcast or multicast packets
    u32             inDiscards;         // Input dropped due to ins. resources
    u32             inErrors;           // Packets dropped on input
    u32             outUcastPackets;    // Output unicast packets
    u32             outNonUcastPackets; // Output broadcast or multicast packets
    u32             outDiscards;        // Output dropped due to ins. resources
    u32             outErrors;          // Output errors
    u32             outCollisions;      // Collisions on CSMA
};

Description

IPClearInterface collects the following statistics of a network interface.

Member Description
inUcastPackets # of input unicast packets.
inNonUcastPackets # of input broadcast or multicast packets.
inDiscards # of input packets discarded because of insufficient resources. (e.g., receive buffer full.)
inErrors # of input packets with errors. (e.g., check-sum error.)
outUcastPackets # of output unicast packets.
outNonUcastPackets # of output broadcast or multicast packets.
outDiscards # of output packets dropped because of insufficient resources. (e.g., output buffer full.)
outErrors # of non-transmitted packets because of errors. Some of errors may also be counted as collisions.
outCollisions # of collisions on CSMA interface including both transmitted packets and aborted packets (error).

See Also

IPGetInterfaceStat(), IPClearInterfaceStat()